package org.example.threads;

import java.util.UUID;

/**
 * id生成器
 *
 * @author bingfang
 * @since 2021-08-04
 */
public class IDGenerator {
    /**
     * 获取一个32位长度id
     *
     * @return 唯一id
     */
    public static String getId() {
        return UUID.randomUUID().toString().replace("-", "");
    }
}
